package org.shuma.user.mng.service;

import org.shuma.user.mng.domain.vo.AuthVo;
import org.shuma.user.utils.Result;

/**
 * @author zhao haitao
 * @date 2024/06/17 1:19 AM
 */
public interface AuthService {
    /**
     * 发送验证码
     *
     * @param email 邮箱
     */
    Result sendVerifyCode(String email);


    Result login(AuthVo auth);

    Result logout(String token);

    Result register(AuthVo auth);




    /**
     * 获取新token
     *
     * @param token token
     */
    Result getNewToken(String token);


}
